/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.iduxs.collect.frame.style2;

import java.util.HashMap;
import java.util.Map;

/**
 *
 * @author Administrator
 */
public class SystemManager {
    private static SystemManager sm;

    private Map registerList=new HashMap();

    private SystemManager(){

    }

    public static SystemManager getInstance(){
        if(sm==null){

            sm=new SystemManager();
        }

        return sm;

    }

    public void register(String name,Object value){
        registerList.put(name,value);
    }

    public Object getRegistered(String name){
        Object value=null;
        if(registerList.containsKey(name)){
           value=registerList.get(name);
        }
        return value;
    }

}
